package top.xizai.xxljob.job;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;


/**
 * @NAME: WSC
 * @DATE: 2021/12/10
 * @DESCRIBE:
 **/
@Log4j2
@Component
public class WSCJOBHandler{

    @XxlJob("wscJobHandler")
    public void execute() {
        var s = XxlJobHelper.getJobParam();
        log.info(String.format("参数如下:%s", s));

        System.out.println("HELLO WORLD!");

        XxlJobHelper.handleSuccess();
    }
}
